import App from './App'

document.documentElement.addEventListener(
	"touchstart",
	function(event) {
		if (event.touches.length > 1) {
			event.preventDefault();
		}
	}, {
		passive: false
	}
);
// 禁止双击放大
let lastTouchEnd = 0;
document.documentElement.addEventListener(
	"touchend",
	function(event) {
		var now = Date.now();
		if (now - lastTouchEnd <= 300) {
			event.preventDefault();
		}
		lastTouchEnd = now;
	}, {
		passive: false
	}
);
// 
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif